﻿//-----------------------------------------------------------------------
// <copyright file="ConsignBidderFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.ConsignModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.NannyModule;
    using Mulala.Cavan.Domain.MainBoundedContext.CorporationModule;

    public static class ConsignBidderFactory
    {
        public static ConsignBidder CreateConsignBidder(
                                        Consign consign,
                                        Nanny bidder,
                                        Corporation bidderCorporation,
                                        ConsignIdentifier.ConsignBidderStatus consignBidderStatus,
                                        bool isDesignated,
                                        DateTime editTime,
                                        string editUser)
        {
            ConsignBidder consignBidder = new ConsignBidder();
            consignBidder.Bidder = bidder;
            consignBidder.BidderCorporation = bidderCorporation;
            consignBidder.ConsignBidderStatus = consignBidderStatus;
            consignBidder.Consign = consign;
            consignBidder.EditTime = editTime;
            consignBidder.EditUser = editUser;
            consignBidder.IsDesignated = isDesignated;
            consignBidder.CreateTime = DateTime.Now;

            return consignBidder;
        }
    }
}
